package com.atguigu.filter.filter;

import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpFilter;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

public class Filter03TestChain extends HttpFilter {

    @Override
    protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("-----------------------Filter03TestChain 开始执行-----------------------");
        chain.doFilter(request, response);
        System.out.println("-----------------------Filter03TestChain 结束执行-----------------------");
    }
}
